<?php
require_once('cube/corecontroller.php');
using('odal','omsdata');
using('cube.core.singleton','singleton');
using('cube.core.benchmark','benchmark');
require('cube/apps/benchmark/style1/overview.php');
class odal_omsdata_test {
	function testGetData() {
		$bench= &singleton_Singleton::getInstance('benchmark_cubebenchmark');
		$bench->start('Start test');
		$omsdata = new odal_OMSData("cube.core.data","oms11_test", 0);
		$params = array();
		$bv = array();
		$bv['p_cursor']='__cursor';
		$bv['b_plattform_name']='MediaServices Plattform';
		$omsdata->getOMSStructureByResource('getdata',$params,$bv,'oms11_test');
		$bench->stop('Start test');
		
		$benchmarkOverview = &new benchmark_CliOverview();
		$benchmarkOverview->setMaxTime(0.5);	// optional
		$benchmarkOverview->display();
		
	}
}
$o = new odal_omsdata_test();
$o->testGetData();
?>